package tests;


import org.testng.Assert;
import org.testng.annotations.Test;
import org.testng.annotations.Parameters;
import pages.HomePage;

public class SmokeTest extends PrePostConditions{
	
	@Parameters({"itemForSearch"})
	@Test
	public void testSearchForItem(String itemForSearch) {
		String firstLinkText;
		HomePage home = new HomePage(driver);
		firstLinkText = home.searchForItem(itemForSearch);
		Assert.assertTrue(firstLinkText.toLowerCase().contains(itemForSearch));
		
	}
}
